package com.lrinfo;

import tech.runchen.gz5055.oms.common.utils.jna.NativeLoader;

/**
 * @author zzj
 */
public class fpcore {

    static {
        String systemType = System.getProperty("os.name");
        String ext = (systemType.toLowerCase().indexOf("win") != -1) ? ".dll" : ".so";
        if (".so".equals(ext)) {
            try {
                NativeLoader.loader("native");
            } catch (Exception e) {
                System.out.println("加载so库失败");
            }
        }
        System.out.println("loaded");
    }

    public native int LoadMatcher();

    public native int UnLoadMatcher();

    public native int MatchTemplate(byte[] src, byte[] dst);

}